﻿for(var i = 0; i < 90; i++) { var scriptId = 'u' + i; window[scriptId] = document.getElementById(scriptId); }

$axure.eventManager.pageLoad(
function (e) {

if (true) {

SetWidgetFormText('u3', '' + (GetGlobalVariableValue('Day')) + '/' + (GetGlobalVariableValue('Month')) + '/' + (GetGlobalVariableValue('Year')) + '');

	var obj1 = document.getElementById("u72");
    obj1.disabled = true;

	var obj1 = document.getElementById("u73");
    obj1.disabled = true;

	var obj1 = document.getElementById("u74");
    obj1.disabled = true;

	var obj1 = document.getElementById("u75");
    obj1.disabled = true;

	var obj1 = document.getElementById("u58");
    obj1.disabled = true;

	var obj1 = document.getElementById("u59");
    obj1.disabled = true;

	var obj1 = document.getElementById("u57");
    obj1.disabled = true;

}

});
gv_vAlignTable['u21'] = 'center';gv_vAlignTable['u86'] = 'center';gv_vAlignTable['u51'] = 'top';gv_vAlignTable['u25'] = 'top';gv_vAlignTable['u55'] = 'top';gv_vAlignTable['u23'] = 'top';gv_vAlignTable['u53'] = 'top';
u87.style.cursor = 'pointer';
$axure.eventManager.click('u87', function(e) {

if (true) {

	SetPanelVisibility('u84','hidden','none',500);

	SetPanelVisibility('u80','','none',500);

}
});
gv_vAlignTable['u27'] = 'top';gv_vAlignTable['u7'] = 'center';gv_vAlignTable['u66'] = 'top';
u60.style.cursor = 'pointer';
$axure.eventManager.click('u60', function(e) {

if ((GetWidgetText('u22')) == ('')) {

SetWidgetRichText('u23', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">1</span></p>');

SetWidgetRichText('u25', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">DH01</span></p>');

SetWidgetRichText('u27', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">CTDH001</span></p>');

	var obj1 = document.getElementById("u74");
    obj1.disabled = false;

	var obj1 = document.getElementById("u72");
    obj1.disabled = false;

}
else
if ((GetWidgetText('u22')) != ('')) {

SetWidgetRichText('u39', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">2</span></p>');

SetWidgetRichText('u41', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">DH01</span></p>');

SetWidgetRichText('u43', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">CTDH002</span></p>');

	var obj1 = document.getElementById("u75");
    obj1.disabled = false;

	var obj1 = document.getElementById("u73");
    obj1.disabled = false;

}
});
gv_vAlignTable['u64'] = 'top';gv_vAlignTable['u19'] = 'center';gv_vAlignTable['u49'] = 'top';
u79.style.cursor = 'pointer';
$axure.eventManager.click('u79', function(e) {

if (true) {

    self.location.href="resources/reload.html#" + encodeURI($axure.globalVariableProvider.getLinkUrl($axure.pageData.url));

}
});
gv_vAlignTable['u1'] = 'top';gv_vAlignTable['u11'] = 'center';gv_vAlignTable['u41'] = 'top';gv_vAlignTable['u15'] = 'center';gv_vAlignTable['u45'] = 'top';
u75.style.cursor = 'pointer';
$axure.eventManager.click('u75', function(e) {

if ((IsValueNumeric(GetWidgetText('u75'))) && ((GetWidgetText('u38')) != (''))) {

SetGlobalVariableValue('SoLuong1', GetWidgetText('u75'));

SetGlobalVariableValue('DonGia1', GetWidgetText('u48'));

SetWidgetRichText('u53', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">' + (GetGlobalVariableValue('SoLuong1') * GetGlobalVariableValue('DonGia1')) + '</span></p>');

SetGlobalVariableValue('ThanhTien1', GetWidgetText('u52'));

SetWidgetFormText('u54', '' + (GetNum(GetGlobalVariableValue('ThanhTien1')) + GetNum(GetGlobalVariableValue('ThanhTien'))) + '');

}
});

u58.style.cursor = 'pointer';
$axure.eventManager.click('u58', function(e) {

if (true) {

	SetPanelVisibility('u76','','none',500);

}
});
gv_vAlignTable['u37'] = 'top';gv_vAlignTable['u2'] = 'top';
u83.style.cursor = 'pointer';
$axure.eventManager.click('u83', function(e) {

if (true) {

	self.location.href=$axure.globalVariableProvider.getLinkUrl('tracuukh.html');

}
});
gv_vAlignTable['u13'] = 'center';gv_vAlignTable['u43'] = 'top';gv_vAlignTable['u0'] = 'top';gv_vAlignTable['u17'] = 'center';gv_vAlignTable['u47'] = 'top';gv_vAlignTable['u68'] = 'top';
u73.style.cursor = 'pointer';
$axure.eventManager.click('u73', function(e) {

if ((GetSelectedOption('u73')) == ('SP01')) {

SetWidgetRichText('u47', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">Liquid Chlorophyll 2</span></p>');

SetWidgetRichText('u49', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">50000</span></p>');

}
else
if ((GetSelectedOption('u73')) == ('SP02')) {

SetWidgetRichText('u47', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">Liquid Chlorophyll 32</span></p>');

SetWidgetRichText('u49', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">125000</span></p>');

}
});
gv_vAlignTable['u39'] = 'top';gv_vAlignTable['u69'] = 'top';gv_vAlignTable['u78'] = 'center';gv_vAlignTable['u31'] = 'top';gv_vAlignTable['u35'] = 'top';document.getElementById('u65_img').tabIndex = 0;

u65.style.cursor = 'pointer';
$axure.eventManager.click('u65', u65Click);
InsertAfterBegin(document.body, "<div class='intcases' id='u65LinksClick'></div>")
var u65LinksClick = document.getElementById('u65LinksClick');
function u65Click(e) 
{
windowEvent = e;


	ToggleLinks(e, 'u65LinksClick');
}

InsertBeforeEnd(u65LinksClick, "<div class='intcaselink' onmouseout='SuppressBubble(event)' onclick='u65Clicku78353c52367845b3a57f62c35bb0c5ac(event)'>Bán Hàng</div>");
function u65Clicku78353c52367845b3a57f62c35bb0c5ac(e)
{

	self.location.href=$axure.globalVariableProvider.getLinkUrl('banhang.html');

	ToggleLinks(e, 'u65LinksClick');
}

InsertBeforeEnd(u65LinksClick, "<div class='intcaselink' onmouseout='SuppressBubble(event)' onclick='u65Clicku534a46dc62d24458a87c6323a8bff70a(event)'>Nhập Hàng</div>");
function u65Clicku534a46dc62d24458a87c6323a8bff70a(e)
{

	self.location.href=$axure.globalVariableProvider.getLinkUrl('nhaphang.html');

	ToggleLinks(e, 'u65LinksClick');
}

InsertBeforeEnd(u65LinksClick, "<div class='intcaselink' onmouseout='SuppressBubble(event)' onclick='u65Clicku73e425975d104705a8b73b871b734c2f(event)'>Đặt Hàng</div>");
function u65Clicku73e425975d104705a8b73b871b734c2f(e)
{

    self.location.href="resources/reload.html#" + encodeURI($axure.globalVariableProvider.getLinkUrl($axure.pageData.url));

	ToggleLinks(e, 'u65LinksClick');
}

InsertBeforeEnd(u65LinksClick, "<div class='intcaselink' onmouseout='SuppressBubble(event)' onclick='u65Clicku5dd0fa54715146298f3bad464d11f2c2(event)'>Tra cứu khách hàng</div>");
function u65Clicku5dd0fa54715146298f3bad464d11f2c2(e)
{

	self.location.href=$axure.globalVariableProvider.getLinkUrl('tracuukh.html');

	ToggleLinks(e, 'u65LinksClick');
}

u56.style.cursor = 'pointer';
$axure.eventManager.click('u56', function(e) {

if (true) {

	self.location.href='Home.html';

}
});
gv_vAlignTable['u82'] = 'center';gv_vAlignTable['u9'] = 'center';gv_vAlignTable['u33'] = 'top';
u72.style.cursor = 'pointer';
$axure.eventManager.click('u72', function(e) {

if ((GetSelectedOption('u72')) == ('SP01')) {

SetWidgetRichText('u31', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">Liquid Chlorophyll 2</span></p>');

SetWidgetRichText('u33', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">50000</span></p>');

}
else
if ((GetSelectedOption('u72')) == ('SP02')) {

SetWidgetRichText('u31', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">Liquid Chlorophyll 32</span></p>');

SetWidgetRichText('u33', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">125000</span></p>');

}
});
document.getElementById('u63_img').tabIndex = 0;

u63.style.cursor = 'pointer';
$axure.eventManager.click('u63', u63Click);
InsertAfterBegin(document.body, "<div class='intcases' id='u63LinksClick'></div>")
var u63LinksClick = document.getElementById('u63LinksClick');
function u63Click(e) 
{
windowEvent = e;


	ToggleLinks(e, 'u63LinksClick');
}

InsertBeforeEnd(u63LinksClick, "<div class='intcaselink' onmouseout='SuppressBubble(event)' onclick='u63Clickuf02ee6c0e2ed4db593e9d0bb4d9f084a(event)'>Sao,Lưu</div>");
function u63Clickuf02ee6c0e2ed4db593e9d0bb4d9f084a(e)
{

	ToggleLinks(e, 'u63LinksClick');
}

InsertBeforeEnd(u63LinksClick, "<div class='intcaselink' onmouseout='SuppressBubble(event)' onclick='u63Clickuf6f99147eddd4031aa3cb82b69f1a401(event)'>Phục Hồi</div>");
function u63Clickuf6f99147eddd4031aa3cb82b69f1a401(e)
{

	ToggleLinks(e, 'u63LinksClick');
}
document.getElementById('u67_img').tabIndex = 0;

u67.style.cursor = 'pointer';
$axure.eventManager.click('u67', u67Click);
InsertAfterBegin(document.body, "<div class='intcases' id='u67LinksClick'></div>")
var u67LinksClick = document.getElementById('u67LinksClick');
function u67Click(e) 
{
windowEvent = e;


	ToggleLinks(e, 'u67LinksClick');
}

InsertBeforeEnd(u67LinksClick, "<div class='intcaselink' onmouseout='SuppressBubble(event)' onclick='u67Clicku24ff2be4862c4f81971597aa33b2b1c1(event)'>Báo Cáo Thu Chi</div>");
function u67Clicku24ff2be4862c4f81971597aa33b2b1c1(e)
{

	self.location.href=$axure.globalVariableProvider.getLinkUrl('bao_cao_thu_chi.html');

	ToggleLinks(e, 'u67LinksClick');
}

InsertBeforeEnd(u67LinksClick, "<div class='intcaselink' onmouseout='SuppressBubble(event)' onclick='u67Clickueaa28a4173fa47ed8871d71cee268f15(event)'>Thông Tin Khách Hàng</div>");
function u67Clickueaa28a4173fa47ed8871d71cee268f15(e)
{

	self.location.href=$axure.globalVariableProvider.getLinkUrl('ttkh.html');

	ToggleLinks(e, 'u67LinksClick');
}

InsertBeforeEnd(u67LinksClick, "<div class='intcaselink' onmouseout='SuppressBubble(event)' onclick='u67Clicku342a7508bc7946c99ac60189db38cbb1(event)'>Thông Tin Sản Phẩm</div>");
function u67Clicku342a7508bc7946c99ac60189db38cbb1(e)
{

	self.location.href=$axure.globalVariableProvider.getLinkUrl('sp.html');

	ToggleLinks(e, 'u67LinksClick');
}

InsertBeforeEnd(u67LinksClick, "<div class='intcaselink' onmouseout='SuppressBubble(event)' onclick='u67Clicku21e945f0d79a4cd3aaa0dd88ea1eab61(event)'>Thông Tin Nhân Viên</div>");
function u67Clicku21e945f0d79a4cd3aaa0dd88ea1eab61(e)
{

	self.location.href=$axure.globalVariableProvider.getLinkUrl('nv.html');

	ToggleLinks(e, 'u67LinksClick');
}

InsertBeforeEnd(u67LinksClick, "<div class='intcaselink' onmouseout='SuppressBubble(event)' onclick='u67Clickucb50cf6d204f4d67911a0a6378d8c101(event)'>Theo Dõi Nhập Hàng</div>");
function u67Clickucb50cf6d204f4d67911a0a6378d8c101(e)
{

	self.location.href=$axure.globalVariableProvider.getLinkUrl('theo_doi_NH.html');

	ToggleLinks(e, 'u67LinksClick');
}

InsertBeforeEnd(u67LinksClick, "<div class='intcaselink' onmouseout='SuppressBubble(event)' onclick='u67Clicku22c3c428dfef4dd791a842cd5c96f589(event)'>Theo Dõi Bán Hàng</div>");
function u67Clicku22c3c428dfef4dd791a842cd5c96f589(e)
{

	self.location.href=$axure.globalVariableProvider.getLinkUrl('theo_doi_BH.html');

	ToggleLinks(e, 'u67LinksClick');
}

InsertBeforeEnd(u67LinksClick, "<div class='intcaselink' onmouseout='SuppressBubble(event)' onclick='u67Clicku296c33dd5c8c47a59036b71301d33a26(event)'>Theo Dõi Đặt Hàng</div>");
function u67Clicku296c33dd5c8c47a59036b71301d33a26(e)
{

	self.location.href=$axure.globalVariableProvider.getLinkUrl('theo_doi_DH.html');

	ToggleLinks(e, 'u67LinksClick');
}

u88.style.cursor = 'pointer';
$axure.eventManager.click('u88', function(e) {

if (true) {

	SetPanelVisibility('u84','hidden','none',500);

}
});

u57.style.cursor = 'pointer';
$axure.eventManager.click('u57', function(e) {

if (true) {

	SetPanelVisibility('u84','','none',500);

}
});
gv_vAlignTable['u70'] = 'top';
u74.style.cursor = 'pointer';
$axure.eventManager.click('u74', function(e) {

if ((IsValueNumeric(GetWidgetText('u74'))) && ((GetWidgetText('u22')) == ('1'))) {

SetGlobalVariableValue('SoLuong', GetWidgetText('u74'));

SetGlobalVariableValue('DonGia', GetWidgetText('u32'));

SetWidgetRichText('u37', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">' + (GetGlobalVariableValue('SoLuong') * GetGlobalVariableValue('DonGia')) + '</span></p>');

SetGlobalVariableValue('ThanhTien', GetWidgetText('u36'));

SetWidgetFormText('u54', GetWidgetText('u36'));

	var obj1 = document.getElementById("u58");
    obj1.disabled = false;

	var obj1 = document.getElementById("u57");
    obj1.disabled = false;

	var obj1 = document.getElementById("u59");
    obj1.disabled = false;

}
});
gv_vAlignTable['u29'] = 'top';
u59.style.cursor = 'pointer';
$axure.eventManager.click('u59', function(e) {

if ((GetWidgetText('u38')) == ('2')) {

SetWidgetRichText('u39', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;text-decoration:none;">&nbsp;</span></p>');

SetWidgetRichText('u41', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;text-decoration:none;">&nbsp;</span></p>');

SetWidgetRichText('u43', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;text-decoration:none;">&nbsp;</span></p>');

SetWidgetRichText('u47', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;text-decoration:none;">&nbsp;</span></p>');

SetWidgetRichText('u49', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;text-decoration:none;">&nbsp;</span></p>');

SetWidgetFormText('u75', '');

SetWidgetRichText('u53', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;text-decoration:none;">&nbsp;</span></p>');

SetWidgetFormText('u54', '' + (GetGlobalVariableValue('SoLuong') * GetGlobalVariableValue('DonGia')) + '');

	var obj1 = document.getElementById("u73");
    obj1.disabled = true;

	var obj1 = document.getElementById("u75");
    obj1.disabled = true;

}
else
if ((GetWidgetText('u22')) == ('1')) {

    self.location.href="resources/reload.html#" + encodeURI($axure.globalVariableProvider.getLinkUrl($axure.pageData.url));

}
});
